package com.fuhui.dao.txu;

import com.fuhui.entity.txu.App;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface AppMapper {
    int deleteByPrimaryKey(Long iIdx);

    int insert(App record);

    int insertSelective(App record);

    App selectByPrimaryKey(Long iIdx);

    int updateByPrimaryKeySelective(App record);

    int updateByPrimaryKey(App record);

    /**
     * 根据学校ID获取学校可用的应用列表
     * @return
     */
    List<App> getAppListBySchoolId(@Param("iSchoolid") Integer iSchoolid, @Param("iPlace") Integer iPlace, @Param("iStatus") Integer iStatus, @Param("pNum") Integer pNum, @Param("pLine") Integer pLine, @Param("isPage") Integer isPage);
}